package serverlog

import (
	"log"
	"os"
)

var logger *log.Logger = NewServerLog("serverlog")

//TODO: Have the ability to change this with settings to write to file, etc.
var logWriter = os.Stdout

func NewServerLog(prefix string) *log.Logger {
	return log.New(logWriter, prefix + ": ", log.LstdFlags|log.Lshortfile)
}

func init() {
	logger.Println("Package initialized.")
}
